-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(popover): add autoAlignBoundary
for configurable collision boundary
#16995
base: main
Are you sure you want to change the base?
feat(popover): add autoAlignBoundary
for configurable collision boundary
#16995
Conversation
borderColor: 'black', | ||
margin: '0 auto', | ||
}} | ||
ref={setBoundary}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL how this pattern works: https://www.youtube.com/watch?v=leEdHQh6nP8
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…nfigurable-collision-boundary
…nfigurable-collision-boundary
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…nfigurable-collision-boundary
…nfigurable-collision-boundary
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16995 +/- ##
==========================================
+ Coverage 82.21% 82.68% +0.47%
==========================================
Files 404 404
Lines 14200 14338 +138
Branches 4509 4641 +132
==========================================
+ Hits 11674 11856 +182
+ Misses 2363 2321 -42
+ Partials 163 161 -2 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! the video was really helpful too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! LGTM
Closes #16879
Closes #16982
Relies on #17139
This adds a new prop that enables consumers to configure what element is used in the overflow detection for
autoAlign
via floating-ui. The new storybook example shows a custom boundary element (marked by a dashed border). The popover repositions based on this element, rather than the viewport.Changelog
New
autoAlignBoundary
to PopoverTesting / Reviewing